package com.tripwego.client.ui.widget;

import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.tripwego.client.ui.pageVoyage.IVoyageView;

public class MapWidget extends VerticalPanel implements IVoyageView {
	
	private Presenter presenter;

	private EventBus eventBus;
	
	private HTML mapDiv = new HTML("<div id='map_canvas'></div>");

	private AnimationWidget animationWidget = new AnimationWidget();

	public MapWidget() {
		setStyleName("mapWidget");
		setWidth("100%");
		add(animationWidget);
		add(mapDiv);
	}

	@Override
	public void setPresenter(Presenter presenter) {
		this.presenter = presenter;
		this.animationWidget.setPresenter(presenter);
	}

	@Override
	public void setEventBus(EventBus eventBus) {
		this.eventBus = eventBus;
	}

	@Override
	public void init() {
		// TODO Auto-generated method stub
		
	}
}
